
<?php  echo form_open(base_url().'main/perform_post'); ?>


<table width="" border="0" align="left"
		style="margin-left: 30px; font-size: 13px; font-family: Verdana, Geneva, sans-serif; margin-bottom: 20px;">

         <tr>
			<td>Title : 
		</td>
		</tr>	
		<tr>
			<td><?php echo form_input('title', ''); ?></td>
		</tr>
		<tr>
			<td colspan="4" height="13" align="right"><?php echo form_error('title', '<span class="error">', '</span>'); ?></td>
		</tr>
		<tr>
			<td>Content : </td>
		</tr>	
		<tr>
			<td ><?php echo form_textarea('content', ''); ?></td>
		</tr>
		<tr>
			<td colspan="4" height="13" align="right"><?php echo form_error('content', '<span class="error">', '</span>'); ?></td>
		</tr>		
        <tr>
            <td>
            <?php echo form_open_multipart('main/do_upload');?>
            <input type="file" name="image" size="20" />
            <br/><br/>
            </td>
        </tr>
		<tr>
			<td colspan="3" align="right"><input style="width: 90px;"
				type="submit" value="Post" name="post" class="classname" /></td>

		</tr>
		<br />
	</table>

<?php echo form_close();  ?>

<style>
.error {
	color: #FF0000;
}
</style>